package com.gxar.uaa.server.base.model.menu;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gxar.uaa.api.dto.menu.SysMenu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/1/23 11:41
 */
@Data
@ApiModel("系统菜单树")
@EqualsAndHashCode(callSuper = true)
public class SysMenuTree extends SysMenu {

    private static final long serialVersionUID = 6763957653751313272L;

    @ApiModelProperty("子菜单")
    @JSONField(name = "sub_menus")
    @JsonProperty("sub_menus")
    private List<SysMenu> subMenus;

}
